home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / mhis020.zip / DATAFILE.MH < prev    next >
Text File  |  1996-09-06  |  267b  |  17 lines

  1. #ifndef __DATAFILE_MH
  2. #define __DATAFILE_MH
  3.  
  4. string datafile_str (int: fd) {
  5.   string: result;
  6.   readln (fd, result);
  7.   return result;
  8.   }
  9.  
  10. long datafile_long (int: fd) {
  11.   string: result;
  12.   readln (fd, result);
  13.   return strtol (result);
  14.   }
  15.  
  16. #endif
  17.